package mianxiangduixiang.Test4.Exam1;

public class Cuboid {
    private double rectangle;
    private double height;

    public double getVolume() {
        return rectangle * height;
    }

    public double getRectangle() {
        return rectangle;
    }

    public void setRectangle(double rectangle) {
        this.rectangle = rectangle;
    }

    public double getHeight() {
        return height;
    }

    public void setHeight(double height) {
        this.height = height;
    }

    public Cuboid(double rectangle, double height) {
        this.rectangle = rectangle;
        this.height = height;
    }
}
